﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.ComponentModel;

namespace Sequence
{
    public partial class tblSequenceStep
    {
        private int _stepOrder = 0;
        public SequenceStep UISequenceStep;
        public System.Windows.Shapes.Line UILine;
        public System.Windows.Shapes.Ellipse UICircle;

        public int StepOrder
        {
            get { return _stepOrder; }
            set
            {
                OnPropertyChanging("StepOrder");
                _stepOrder = value;
                OnPropertyChanged("StepOrder");
            }
        }
    }

    public partial class tblSequence
    {
        public tblSequence()
            : base()
        {
            //ProductReference.AssociationChanged += new System.ComponentModel.CollectionChangeEventHandler(
            //    (object o, CollectionChangeEventArgs e) => AssociationChanged("Product", e));
        }

        void AssociationChanged(string association, System.ComponentModel.CollectionChangeEventArgs e)
        {
            if (e.Action == System.ComponentModel.CollectionChangeAction.Remove)
                OnPropertyChanging(association);
            else
                OnPropertyChanged(association);
        }
    }

}
